package com.gxa.customer.service.Impl;

import com.gxa.common.pojo.AppUserHouse;
import com.gxa.customer.mapper.AppUserHouseMapper;
import com.gxa.customer.service.AppUserHouseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AppUserHouseServiceImpl implements AppUserHouseService {

    @Autowired
    private AppUserHouseMapper appUserHouseMapper;


    @Override
    public void insertAppUserHouse(AppUserHouse appUserHouse) {
        appUserHouseMapper.insertAppUserHouse(appUserHouse);
    }

    @Override
    public List<AppUserHouse> selectAllHouseById(Long appUserId) {
        List<AppUserHouse> appUserHouses=appUserHouseMapper.selectAllHouseById(appUserId);
        return appUserHouses;
    }
}
